package com.cloud.api.domain.model;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Getter
@Setter
@Accessors(chain = true)
@Schema(name = "ModelBase", description = "车型基础信息")
public class ModelBase implements Serializable {

    @Schema(description = "主键")
    @NotEmpty(message = "{validation.common.id}")
    private String id;

    @Schema(description = "公告型号")
    @NotEmpty(message = "{validation.model.noticeModel}")
    @Size(max = 30,message = "{validation.common.maxSize}")
    private String noticeModel;

    @Schema(description = "图片")
    @NotEmpty(message = "{validation.model.url}")
    private String pictureUrl;

    @Schema(description = "车辆属性")
    @NotEmpty(message = "{validation.model.vehicleAttribute}")
    @Size(max = 30,message = "{validation.common.maxSize}")
    private String vehicleAttribute;

    @Schema(description = "外廓尺寸长*宽*高(mm)")
    @NotEmpty(message = "{validation.model.outerDimensions}")
    @Size(max = 30,message = "{validation.common.maxSize}")
    private String outerDimensions;

    @Schema(description = "颜色")
    @Size(max = 30,message = "{validation.common.maxSize}")
    private String colour;

    @Schema(description = "总质量")
    private String totalMass;

    @Schema(description = "整备质量")
    private String curbMass;
}
